package com.cc.service.impl;

import com.cc.entity.SysRight;
import com.cc.entity.SysRole;
import com.cc.entity.SysRoleRight;
import com.cc.entity.SysRoleRightExample;
import com.cc.mapper.SysRightMapper;
import com.cc.mapper.SysRoleMapper;
import com.cc.mapper.SysRoleRightMapper;
import com.cc.service.IRoleService;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class RoleServiceImpl implements IRoleService {
    @Autowired
    private SysRoleMapper sysRoleMapper;

    public SysRole queryRoleAndRights(int roleId) {
        //根据角色id查询该角色的信息以及该角色具有的所有权限的所有信息
        return sysRoleMapper.findRoleAndRights(roleId);
    }


}